Integrand size = 26, antiderivative size = 129 \[ \int \frac {1}{(b d+2 c d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\frac {4}{\left (b^2-4 a c\right ) d \sqrt {b d+2 c d x}}+\frac {2 \arctan \left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{5/4} d^{3/2}}-\frac {2 \text {arctanh}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{5/4} d^{3/2}} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 129, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {707, 708, 335, 304, 209, 212} \[ \int \frac {1}{(b d+2 c d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\frac {2 \arctan \left (\frac {\sqrt {d (b+2 c x)}}{\sqrt {d} \sqrt [4]{b^2-4 a c}}\right )}{d^{3/2} \left (b^2-4 a c\right )^{5/4}}-\frac {2 \text {arctanh}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt {d} \sqrt [4]{b^2-4 a c}}\right )}{d^{3/2} \left (b^2-4 a c\right )^{5/4}}+\frac {4}{d \left (b^2-4 a c\right ) \sqrt {b d+2 c d x}} \]
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 335
Rule 707
Rule 708
Rubi steps \begin{align*} \text {integral}& = \frac {4}{\left (b^2-4 a c\right ) d \sqrt {b d+2 c d x}}+\frac {\int \frac {\sqrt {b d+2 c d x}}{a+b x+c x^2} \, dx}{\left (b^2-4 a c\right ) d^2} \\ & = \frac {4}{\left (b^2-4 a c\right ) d \sqrt {b d+2 c d x}}+\frac {\text {Subst}\left (\int \frac {\sqrt {x}}{a-\frac {b^2}{4 c}+\frac {x^2}{4 c d^2}} \, dx,x,b d+2 c d x\right )}{2 c \left (b^2-4 a c\right ) d^3} \\ & = \frac {4}{\left (b^2-4 a c\right ) d \sqrt {b d+2 c d x}}+\frac {\text {Subst}\left (\int \frac {x^2}{a-\frac {b^2}{4 c}+\frac {x^4}{4 c d^2}} \, dx,x,\sqrt {d (b+2 c x)}\right )}{c \left (b^2-4 a c\right ) d^3} \\ & = \frac {4}{\left (b^2-4 a c\right ) d \sqrt {b d+2 c d x}}-\frac {2 \text {Subst}\left (\int \frac {1}{\sqrt {b^2-4 a c} d-x^2} \, dx,x,\sqrt {d (b+2 c x)}\right )}{\left (b^2-4 a c\right ) d}+\frac {2 \text {Subst}\left (\int \frac {1}{\sqrt {b^2-4 a c} d+x^2} \, dx,x,\sqrt {d (b+2 c x)}\right )}{\left (b^2-4 a c\right ) d} \\ & = \frac {4}{\left (b^2-4 a c\right ) d \sqrt {b d+2 c d x}}+\frac {2 \tan ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{5/4} d^{3/2}}-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {d (b+2 c x)}}{\sqrt [4]{b^2-4 a c} \sqrt {d}}\right )}{\left (b^2-4 a c\right )^{5/4} d^{3/2}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.22 (sec) , antiderivative size = 193, normalized size of antiderivative = 1.50 \[ \int \frac {1}{(b d+2 c d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\frac {(1+i) \left ((2-2 i) \sqrt [4]{b^2-4 a c}-\sqrt {b+2 c x} \arctan \left (1-\frac {(1+i) \sqrt {b+2 c x}}{\sqrt [4]{b^2-4 a c}}\right )+\sqrt {b+2 c x} \arctan \left (1+\frac {(1+i) \sqrt {b+2 c x}}{\sqrt [4]{b^2-4 a c}}\right )-\sqrt {b+2 c x} \text {arctanh}\left (\frac {(1+i) \sqrt [4]{b^2-4 a c} \sqrt {b+2 c x}}{\sqrt {b^2-4 a c}+i (b+2 c x)}\right )\right )}{\left (b^2-4 a c\right )^{5/4} d \sqrt {d (b+2 c x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(273\) vs. \(2(107)=214\).
Time = 2.53 (sec) , antiderivative size = 274, normalized size of antiderivative = 2.12
method | result | size |
derivativedivides | \(4 d \left (-\frac {\sqrt {2}\, \left (\ln \left (\frac {2 c d x +b d -\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}{2 c d x +b d +\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 d^{2} \left (4 a c -b^{2}\right ) \left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}-\frac {1}{d^{2} \left (4 a c -b^{2}\right ) \sqrt {2 c d x +b d}}\right )\) | \(274\) |
default | \(4 d \left (-\frac {\sqrt {2}\, \left (\ln \left (\frac {2 c d x +b d -\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}{2 c d x +b d +\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}} \sqrt {2 c d x +b d}\, \sqrt {2}+\sqrt {4 a c \,d^{2}-b^{2} d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {2 c d x +b d}}{\left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 d^{2} \left (4 a c -b^{2}\right ) \left (4 a c \,d^{2}-b^{2} d^{2}\right )^{\frac {1}{4}}}-\frac {1}{d^{2} \left (4 a c -b^{2}\right ) \sqrt {2 c d x +b d}}\right )\) | \(274\) |
pseudoelliptic | \(-\frac {\ln \left (\frac {\sqrt {d^{2} \left (4 a c -b^{2}\right )}-\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}} \sqrt {d \left (2 c x +b \right )}\, \sqrt {2}+d \left (2 c x +b \right )}{\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}} \sqrt {d \left (2 c x +b \right )}\, \sqrt {2}+\sqrt {d^{2} \left (4 a c -b^{2}\right )}+d \left (2 c x +b \right )}\right ) \sqrt {2}\, \sqrt {d \left (2 c x +b \right )}+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \left (2 c x +b \right )}+\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}}}{\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}}}\right ) \sqrt {2}\, \sqrt {d \left (2 c x +b \right )}-2 \arctan \left (\frac {-\sqrt {2}\, \sqrt {d \left (2 c x +b \right )}+\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}}}{\left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}}}\right ) \sqrt {2}\, \sqrt {d \left (2 c x +b \right )}+8 \left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}}}{8 \sqrt {d \left (2 c x +b \right )}\, \left (d^{2} \left (4 a c -b^{2}\right )\right )^{\frac {1}{4}} d \left (-\frac {b^{2}}{4}+a c \right )}\) | \(320\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.27 (sec) , antiderivative size = 900, normalized size of antiderivative = 6.98 \[ \int \frac {1}{(b d+2 c d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=-\frac {{\left (2 \, {\left (b^{2} c - 4 \, a c^{2}\right )} d^{2} x + {\left (b^{3} - 4 \, a b c\right )} d^{2}\right )} \left (\frac {1}{{\left (b^{10} - 20 \, a b^{8} c + 160 \, a^{2} b^{6} c^{2} - 640 \, a^{3} b^{4} c^{3} + 1280 \, a^{4} b^{2} c^{4} - 1024 \, a^{5} c^{5}\right )} d^{6}}\right )^{\frac {1}{4}} \log \left ({\left (b^{8} - 16 \, a b^{6} c + 96 \, a^{2} b^{4} c^{2} - 256 \, a^{3} b^{2} c^{3} + 256 \, a^{4} c^{4}\right )} d^{5} \left (\frac {1}{{\left (b^{10} - 20 \, a b^{8} c + 160 \, a^{2} b^{6} c^{2} - 640 \, a^{3} b^{4} c^{3} + 1280 \, a^{4} b^{2} c^{4} - 1024 \, a^{5} c^{5}\right )} d^{6}}\right )^{\frac {3}{4}} + \sqrt {2 \, c d x + b d}\right ) + {\left (-2 i \, {\left (b^{2} c - 4 \, a c^{2}\right )} d^{2} x - i \, {\left (b^{3} - 4 \, a b c\right )} d^{2}\right )} \left (\frac {1}{{\left (b^{10} - 20 \, a b^{8} c + 160 \, a^{2} b^{6} c^{2} - 640 \, a^{3} b^{4} c^{3} + 1280 \, a^{4} b^{2} c^{4} - 1024 \, a^{5} c^{5}\right )} d^{6}}\right )^{\frac {1}{4}} \log \left (i \, {\left (b^{8} - 16 \, a b^{6} c + 96 \, a^{2} b^{4} c^{2} - 256 \, a^{3} b^{2} c^{3} + 256 \, a^{4} c^{4}\right )} d^{5} \left (\frac {1}{{\left (b^{10} - 20 \, a b^{8} c + 160 \, a^{2} b^{6} c^{2} - 640 \, a^{3} b^{4} c^{3} + 1280 \, a^{4} b^{2} c^{4} - 1024 \, a^{5} c^{5}\right )} d^{6}}\right )^{\frac {3}{4}} + \sqrt {2 \, c d x + b d}\right ) + {\left (2 i \, {\left (b^{2} c - 4 \, a c^{2}\right )} d^{2} x + i \, {\left (b^{3} - 4 \, a b c\right )} d^{2}\right )} \left (\frac {1}{{\left (b^{10} - 20 \, a b^{8} c + 160 \, a^{2} b^{6} c^{2} - 640 \, a^{3} b^{4} c^{3} + 1280 \, a^{4} b^{2} c^{4} - 1024 \, a^{5} c^{5}\right )} d^{6}}\right )^{\frac {1}{4}} \log \left (-i \, {\left (b^{8} - 16 \, a b^{6} c + 96 \, a^{2} b^{4} c^{2} - 256 \, a^{3} b^{2} c^{3} + 256 \, a^{4} c^{4}\right )} d^{5} \left (\frac {1}{{\left (b^{10} - 20 \, a b^{8} c + 160 \, a^{2} b^{6} c^{2} - 640 \, a^{3} b^{4} c^{3} + 1280 \, a^{4} b^{2} c^{4} - 1024 \, a^{5} c^{5}\right )} d^{6}}\right )^{\frac {3}{4}} + \sqrt {2 \, c d x + b d}\right ) - {\left (2 \, {\left (b^{2} c - 4 \, a c^{2}\right )} d^{2} x + {\left (b^{3} - 4 \, a b c\right )} d^{2}\right )} \left (\frac {1}{{\left (b^{10} - 20 \, a b^{8} c + 160 \, a^{2} b^{6} c^{2} - 640 \, a^{3} b^{4} c^{3} + 1280 \, a^{4} b^{2} c^{4} - 1024 \, a^{5} c^{5}\right )} d^{6}}\right )^{\frac {1}{4}} \log \left (-{\left (b^{8} - 16 \, a b^{6} c + 96 \, a^{2} b^{4} c^{2} - 256 \, a^{3} b^{2} c^{3} + 256 \, a^{4} c^{4}\right )} d^{5} \left (\frac {1}{{\left (b^{10} - 20 \, a b^{8} c + 160 \, a^{2} b^{6} c^{2} - 640 \, a^{3} b^{4} c^{3} + 1280 \, a^{4} b^{2} c^{4} - 1024 \, a^{5} c^{5}\right )} d^{6}}\right )^{\frac {3}{4}} + \sqrt {2 \, c d x + b d}\right ) - 4 \, \sqrt {2 \, c d x + b d}}{2 \, {\left (b^{2} c - 4 \, a c^{2}\right )} d^{2} x + {\left (b^{3} - 4 \, a b c\right )} d^{2}} \]
[In]
[Out]
\[ \int \frac {1}{(b d+2 c d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\int \frac {1}{\left (d \left (b + 2 c x\right )\right )^{\frac {3}{2}} \left (a + b x + c x^{2}\right )}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {1}{(b d+2 c d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 497 vs. \(2 (107) = 214\).
Time = 0.30 (sec) , antiderivative size = 497, normalized size of antiderivative = 3.85 \[ \int \frac {1}{(b d+2 c d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=-\frac {\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {3}{4}} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} + 2 \, \sqrt {2 \, c d x + b d}\right )}}{2 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}}}\right )}{b^{4} d^{3} - 8 \, a b^{2} c d^{3} + 16 \, a^{2} c^{2} d^{3}} - \frac {\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {3}{4}} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} - 2 \, \sqrt {2 \, c d x + b d}\right )}}{2 \, {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}}}\right )}{b^{4} d^{3} - 8 \, a b^{2} c d^{3} + 16 \, a^{2} c^{2} d^{3}} + \frac {{\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {3}{4}} \log \left (2 \, c d x + b d + \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} \sqrt {2 \, c d x + b d} + \sqrt {-b^{2} d^{2} + 4 \, a c d^{2}}\right )}{\sqrt {2} b^{4} d^{3} - 8 \, \sqrt {2} a b^{2} c d^{3} + 16 \, \sqrt {2} a^{2} c^{2} d^{3}} - \frac {{\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {3}{4}} \log \left (2 \, c d x + b d - \sqrt {2} {\left (-b^{2} d^{2} + 4 \, a c d^{2}\right )}^{\frac {1}{4}} \sqrt {2 \, c d x + b d} + \sqrt {-b^{2} d^{2} + 4 \, a c d^{2}}\right )}{\sqrt {2} b^{4} d^{3} - 8 \, \sqrt {2} a b^{2} c d^{3} + 16 \, \sqrt {2} a^{2} c^{2} d^{3}} + \frac {4}{{\left (b^{2} d - 4 \, a c d\right )} \sqrt {2 \, c d x + b d}} \]
[In]
[Out]
Time = 9.43 (sec) , antiderivative size = 153, normalized size of antiderivative = 1.19 \[ \int \frac {1}{(b d+2 c d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\frac {4}{\sqrt {b\,d+2\,c\,d\,x}\,\left (b^2\,d-4\,a\,c\,d\right )}+\frac {2\,\mathrm {atan}\left (\frac {b^2\,\sqrt {b\,d+2\,c\,d\,x}-4\,a\,c\,\sqrt {b\,d+2\,c\,d\,x}}{\sqrt {d}\,{\left (b^2-4\,a\,c\right )}^{5/4}}\right )}{d^{3/2}\,{\left (b^2-4\,a\,c\right )}^{5/4}}+\frac {\mathrm {atan}\left (\frac {b^2\,\sqrt {b\,d+2\,c\,d\,x}\,1{}\mathrm {i}-a\,c\,\sqrt {b\,d+2\,c\,d\,x}\,4{}\mathrm {i}}{\sqrt {d}\,{\left (b^2-4\,a\,c\right )}^{5/4}}\right )\,2{}\mathrm {i}}{d^{3/2}\,{\left (b^2-4\,a\,c\right )}^{5/4}} \]
[In]
[Out]